package com.yc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.servlet.annotation.WebServlet;

/**
 * Hello world!
 *
 */
@SpringBootApplication

@EnableEurekaClient
@EnableFeignClients
@EnableScheduling
@EnableCaching
//@EnableRedisHttpSession
public class IndexApp
{
    public static void main( String[] args )
    {
        SpringApplication.run(IndexApp.class, args);
    }
//
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/static/**").
//                addResourceLocations("file:E:\\Java项目文件\\schoolmarket\\market-parent\\market-index\\src\\main\\resources\\static");
//    }
}
